mod_rewrite and setenv
am 01.11.2009 16:50:47 von Andrei Iarus
--0-1071928430-1257090647=:87716
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
=A0
I have looked a lot in Internet, and found many people complaining about th=
e same problem, with no normal answer.
=A0
My problem:
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read correctly=
the environment variables.
=A0
The variable is set directly in the .htaccess OR in the main httpd.conf. No=
matter, the variable won't be read. THe logging of the rewrite process wil=
l show that the value of %{ENV:variable} will be "".
=A0
I have found the same problem posted 5 years ago, with no answer, which is =
awkward (if this is a bug).
=A0
What I wrote was:
=A0
SetEnv APPLICATION_ENV development
=A0
RewriteCond %{ENV:APPLICATION_ENV} ^development$
RewriteRule ^.*$ /XXX/index.php [NC,L]
=A0
Unfortunately, it doesnt work. Any experience with that? Where should I com=
plain further?
=0A
--0-1071928430-1257090647=:87716
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
|
top" style=3D"font: inherit;">Hello,
I have looked a lot in Internet, and found many people complaining abo=
ut the same problem, with no normal answer.
My problem:
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read corr=
ectly the environment variables.
The variable is set directly in the .htaccess OR in the main httpd.con=
f. No matter, the variable won't be read. THe logging of the rewrite proces=
s will show that the value of %{ENV:variable} will be "".
I have found the same problem posted 5 years ago, with no answer, whic=
h is awkward (if this is a bug).
What I wrote was:
SetEnv APPLICATION_ENV development
RewriteCond %{ENV:APPLICATION_ENV} ^development$
RewriteRule ^.*$ /=
XXX/index.php [NC,L]
Unfortunately, it doesnt work. Any experience with that? Where should =
I complain further?
--0-1071928430-1257090647=:87716--
Re: mod_rewrite and setenv
am 01.11.2009 17:10:55 von Eric Covener
--000e0cd6a75887708e0477518118
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Nov 1, 2009 at 10:50 AM, Andrei Iarus wrote:
> Hello,
>
> I have looked a lot in Internet, and found many people complaining about
> the same problem, with no normal answer.
>
> My problem:
> mod_rewrite with its RewriteCond %{ENV:variable} form cannot read correctly
> the environment variables.
>
> The variable is set directly in the .htaccess OR in the main httpd.conf. No
> matter, the variable won't be read. THe logging of the rewrite process will
> show that the value of %{ENV:variable} will be "".
>
> I have found the same problem posted 5 years ago, with no answer, which is
> awkward (if this is a bug).
>
> What I wrote was:
>
> SetEnv APPLICATION_ENV development
>
> RewriteCond %{ENV:APPLICATION_ENV} ^development$
> RewriteRule ^.*$ /XXX/index.php [NC,L]
>
> Unfortunately, it doesnt work. Any experience with that? Where should I
> complain further?
>
>
Variables set by SetEnvIf are set earlier than those by SetEnv. Does that
resolve your problem?
--
Eric Covener
covener@gmail.com
--000e0cd6a75887708e0477518118
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Sun, Nov 1, 2009 at 10:50 AM, Andrei Iarus
pan dir=3D"ltr"><
poni1111@yahoo.co=
m> wrote:
r-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-le=
ft: 1ex;">
|
e=3D"font-family: inherit; font-style: inherit; font-variant: inherit; font=
-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjus=
t: inherit; font-stretch: inherit;" valign=3D"top">
Hello,
=A0
I have looked a lot in Internet, and found many people complaining abo=
ut the same problem, with no normal answer.
=A0
My problem:
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read corr=
ectly the environment variables.
=A0
The variable is set directly in the .htaccess OR in the main httpd.con=
f. No matter, the variable won't be read. THe logging of the rewrite pr=
ocess will show that the value of %{ENV:variable} will be "".
v>
=A0
I have found the same problem posted 5 years ago, with no answer, whic=
h is awkward (if this is a bug).
=A0
What I wrote was:
=A0
SetEnv APPLICATION_ENV development
=A0
RewriteCond %{ENV:APPLICATION_ENV} ^development$
RewriteRule ^.*$ /=
XXX/index.php [NC,L]
=A0
Unfortunately, it doesnt work. Any experience with that? Where should =
I complain further?
Variables set by SetEnvIf are set earlier than=
those by SetEnv. Does that resolve your problem?
--
Eric Covene=
r
--000e0cd6a75887708e0477518118--
Re: mod_rewrite and setenv
am 01.11.2009 17:17:02 von Rich Bowen
--Apple-Mail-2--387851691
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
On Nov 1, 2009, at 10:50 , Andrei Iarus wrote:
> Hello,
>
> I have looked a lot in Internet, and found many people complaining
> about the same problem, with no normal answer.
>
> My problem:
> mod_rewrite with its RewriteCond %{ENV:variable} form cannot read
> correctly the environment variables.
>
> The variable is set directly in the .htaccess OR in the main
> httpd.conf. No matter, the variable won't be read. THe logging of
> the rewrite process will show that the value of %{ENV:variable} will
> be "".
>
> I have found the same problem posted 5 years ago, with no answer,
> which is awkward (if this is a bug).
>
> What I wrote was:
>
> SetEnv APPLICATION_ENV development
>
> RewriteCond %{ENV:APPLICATION_ENV} ^development$
> RewriteRule ^.*$ /XXX/index.php [NC,L]
>
> Unfortunately, it doesnt work. Any experience with that? Where
> should I complain further?
>
This is a matter of order of processing. The rewrite directives run
earlier than the SetEnv directives. You can set the env var with
mod_rewrite:
RewriteRule ^ - [E:APPLICATION_ENV=development]
--
Rich Bowen
rbowen@rcbowen.com
--Apple-Mail-2--387851691
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
-webkit-line-break: after-white-space; ">
On Nov 1, 2009, =
at 10:50 , Andrei Iarus wrote:
class=3D"Apple-interchange-newline">
cellspacing=3D"0" cellpadding=3D"0" border=3D"0" style=3D"position: =
static; z-index: auto; "> |
inherit;">Hello,
I have looked a lot =
in Internet, and found many people complaining about the same problem, =
with no normal answer.
My problem:
=
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read =
correctly the environment variables.
The =
variable is set directly in the .htaccess OR in the main httpd.conf. No =
matter, the variable won't be read. THe logging of the rewrite process =
will show that the value of %{ENV:variable} will be "".
=
I have found the same problem posted 5 years ago, =
with no answer, which is awkward (if this is a bug).
=
What I wrote was:
=
SetEnv APPLICATION_ENV development
=
RewriteCond %{ENV:APPLICATION_ENV} ^development$
RewriteRule =
^.*$ /XXX/index.php [NC,L]
Unfortunately, =
it doesnt work. Any experience with that? Where should I complain =
further?
=
This is a matter =
of order of processing. The rewrite directives run earlier than the =
SetEnv directives. You can set the env var with =
mod_rewrite:
RewriteRule ^ - =
[E:APPLICATION_ENV=3Ddevelopment]
apple-content-edited=3D"true">
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: medium; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; ">--
Rich Bowen
href=3D"mailto:rbowen@rcbowen.com">rbowen@rcbowen.com
=
div>
=
=
--Apple-Mail-2--387851691--
Re: mod_rewrite and setenv
am 01.11.2009 18:14:58 von Andrei Iarus
--0-1594853747-1257095698=:27765
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks very much for the fast responses. Can this info be added in the mod_=
rewrite documentation, as this is very important for future questions?
=A0
OR: can the order of processing be changed?
--- On Sun, 11/1/09, Rich Bowen wrote:
From: Rich Bowen
Subject: Re: [users@httpd] mod_rewrite and setenv
To: users@httpd.apache.org
Date: Sunday, November 1, 2009, 7:17 PM
On Nov 1, 2009, at 10:50 , Andrei Iarus wrote:
Hello,
=A0
I have looked a lot in Internet, and found many people complaining about th=
e same problem, with no normal answer.
=A0
My problem:
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read correctly=
the environment variables.
=A0
The variable is set directly in the .htaccess OR in the main httpd.conf. No=
matter, the variable won't be read. THe logging of the rewrite process wil=
l show that the value of %{ENV:variable} will be "".
=A0
I have found the same problem posted 5 years ago, with no answer, which is =
awkward (if this is a bug).
=A0
What I wrote was:
=A0
SetEnv APPLICATION_ENV development
=A0
RewriteCond %{ENV:APPLICATION_ENV} ^development$
RewriteRule ^.*$ /XXX/index.php [NC,L]
=A0
Unfortunately, it doesnt work. Any experience with that? Where should I com=
plain further?
This is a matter of order of processing. The rewrite directives run earlier=
than the SetEnv directives. You can set the env var with mod_rewrite:
RewriteRule ^ - [E:APPLICATION_ENV=3Ddevelopment]
--
Rich Bowen
rbowen@rcbowen.com
=0A
--0-1594853747-1257095698=:27765
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
|
top" style=3D"font: inherit;">Thanks very much for the fast responses.=
Can this info be added in the mod_rewrite documentation, as this is very i=
mportant for future questions?
OR: can the order of processing be changed?
--- On Sun, 11/1=
/09, Rich Bowen <rbowen@rcbowen.com> wrote:
16,16,255) 2px solid">
From: Rich Bowen <rbowen@rcbowen.com>
Su=
bject: Re: [users@httpd] mod_rewrite and setenv
To: users@httpd.apache.o=
rg
Date: Sunday, November 1, 2009, 7:17 PM
On Nov 1, 2009, at 10:50 , Andrei Iarus wrote:
interchange-newline>
Hello,
I have looked a lot in Internet, and found many people complaining abo=
ut the same problem, with no normal answer.
My problem:
mod_rewrite with its RewriteCond %{ENV:variable} form cannot read corr=
ectly the environment variables.
The variable is set directly in the .htaccess OR in the main httpd.con=
f. No matter, the variable won't be read. THe logging of the rewrite proces=
s will show that the value of %{ENV:variable} will be "".
I have found the same problem posted 5 years ago, with no answer, whic=
h is awkward (if this is a bug).
What I wrote was:
SetEnv APPLICATION_ENV development
RewriteCond %{ENV:APPLICATION_ENV} ^development$ RewriteRule ^.*$ /=
XXX/index.php [NC,L]
Unfortunately, it doesnt work. Any experience with that? Where should =
I complain further? |
This is a matter of order of processing. The rewrite directives run ea=
rlier than the SetEnv directives. You can set the env var with mod_rewrite:=
RewriteRule ^ - [E:APPLICATION_ENV=3Ddevelopment]
m Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHI=
TE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphan=
s: 2; widows: 2">
--
Rich Bowen
en.com" target=3D_blank rel=3Dnofollow ymailto=3D"mailto:rbowen@rcbowen.com=
">rbowen@rcbowen.com
>
--0-1594853747-1257095698=:27765--
Re: mod_rewrite and setenv
am 01.11.2009 20:36:12 von aw
Andrei Iarus wrote:
> Thanks very much for the fast responses. Can this info be added in the mod_rewrite documentation, as this is very important for future questions?
>
It's already there, see :
http://httpd.apache.org/docs/2.2/env.html
Some Caveats
> OR: can the order of processing be changed?
>
Are you kidding ?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite and setenv
am 01.11.2009 21:02:02 von Eric Covener
On Sun, Nov 1, 2009 at 2:36 PM, Andr=E9 Warnier wrote:
> Andrei Iarus wrote:
>>
>> Thanks very much for the fast responses. Can this info be added in the
>> mod_rewrite documentation, as this is very important for future question=
s?
>>
>
> It's already there, see :
> http://httpd.apache.org/docs/2.2/env.html
> Some Caveats
Added similar text to SetEnv today.
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite and setenv
am 02.11.2009 09:50:20 von Andrei Iarus
--0-484256174-1257151820=:76716
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I am sorry, I looked only at "Using Environment Variables", "URL Rewriting"=
, as I needed to read it (use it), and not to set it :) So a suggestion wou=
ld be to move the info to that paragraph (eventually=A0to put link to "Some=
Caveats" ?)
=A0
ANYWAY, I would expect this info also in the mod_rewrite, RewriteCond's doc=
umentation page.
Thanks a lot.
Have a nice day!
--- On Sun, 11/1/09, Andr=E9 Warnier wrote:
From: Andr=E9 Warnier
Subject: Re: [users@httpd] mod_rewrite and setenv
To: users@httpd.apache.org
Date: Sunday, November 1, 2009, 10:36 PM
Andrei Iarus wrote:
> Thanks very much for the fast responses. Can this info be added in the mo=
d_rewrite documentation, as this is very important for future questions?
>
It's already there, see :
http://httpd.apache.org/docs/2.2/env.html
Some Caveats
> OR: can the order of processing be changed?
>=20
Are you kidding ?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0 " =A0from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
=0A
--0-484256174-1257151820=:76716
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
|
top" style=3D"font: inherit;">I am sorry, I looked only at "Using Envi=
ronment Variables", "URL Rewriting", as I needed to read it (use it), and n=
ot to set it :) So a suggestion would be to move the info to that paragraph=
(eventually to put link to "
Some Cavea=
ts" ?)
ANYWAY, I would expect this info also in the mod_rewrite, RewriteCond'=
s documentation page.
Thanks a lot.
Have a nice day!
--- On Sun, 11/1/09, Andr=E9 Warnier <aw@ice-sa.com>=
I> wrote:
16,16,255) 2px solid">
From: Andr=E9 Warnier <aw@ice-sa.com>
Su=
bject: Re: [users@httpd] mod_rewrite and setenv
To: users@httpd.apache.o=
rg
Date: Sunday, November 1, 2009, 10:36 PM
Andrei Iarus wrote:
> Thanks very much for the=
fast responses. Can this info be added in the mod_rewrite documentation, a=
s this is very important for future questions?
>
It's alrea=
dy there, see :
rget=3D_blank>http://httpd.apache.org/docs/2.2/env.html
Some Caveats=
> OR: can the order of processing be changed?
>
Are yo=
u kidding ?
--------------------------------------------------------=
-------------
The official User-To-User support forum of the Apache HTTP=
Server Project.
See <URL:
t.html" target=3D_blank>http://httpd.apache.org/userslist.html> for =
more info.
To unsubscribe, e-mail:
..com/mc/compose?to=3Dusers-unsubscribe@httpd.apache.org" ymailto=3D"mailto:=
users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd. apache.org<=
BR>
" from the digest:
com/mc/compose?to=3Dusers-digest-unsubscribe@httpd.apache.or g" ymailto=3D"m=
ailto:users-digest-unsubscribe@httpd.apache.org">users-diges t-unsubscribe@h=
ttpd.apache.org
For additional commands, e-mail:
s.mc517.mail.yahoo.com/mc/compose?to=3Dusers-help@httpd.apac he.org" ymailto=
=3D"mailto:users-help@httpd.apache.org">users-help@httpd.apa che.org
=
--0-484256174-1257151820=:76716--